package com.yzy.soft.common.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author yinzhiyuan
 * @since 2017-11-29
 */
@TableName("Firulesversion")
public class Firulesversion extends Model<Firulesversion> {

    private static final long serialVersionUID = 1L;

    @TableId(value="VERSIONNO",type= IdType.INPUT)
	private String versionno;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@TableField("STARTDATE")
	private Date startdate;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@TableField("ENDDATE")
	private Date enddate;
	@TableField("VERSIONREMARK")
	private String versionremark;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@TableField("APPDATE")
	private Date appdate;
	@TableField("VERSIONSTATE")
	private String versionstate;
	@TableField("OPERATOR")
	private String operator;
	@TableField("MAKEDATE")
	private Date makedate;
	@TableField("MAKETIME")
	private String maketime;


	public String getVersionno() {
		return versionno;
	}

	public void setVersionno(String versionno) {
		this.versionno = versionno;
	}

	public Date getStartdate() {
		return startdate;
	}

	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}

	public Date getEnddate() {
		return enddate;
	}

	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}

	public String getVersionremark() {
		return versionremark;
	}

	public void setVersionremark(String versionremark) {
		this.versionremark = versionremark;
	}

	public Date getAppdate() {
		return appdate;
	}

	public void setAppdate(Date appdate) {
		this.appdate = appdate;
	}

	public String getVersionstate() {
		return versionstate;
	}

	public void setVersionstate(String versionstate) {
		this.versionstate = versionstate;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Date getMakedate() {
		return makedate;
	}

	public void setMakedate(Date makedate) {
		this.makedate = makedate;
	}

	public String getMaketime() {
		return maketime;
	}

	public void setMaketime(String maketime) {
		this.maketime = maketime;
	}

	@Override
	protected Serializable pkVal() {
		return this.versionno;
	}

	@Override
	public String toString() {
		return "Firulesversion{" +
			"versionno=" + versionno +
			", startdate=" + startdate +
			", enddate=" + enddate +
			", versionremark=" + versionremark +
			", appdate=" + appdate +
			", versionstate=" + versionstate +
			", operator=" + operator +
			", makedate=" + makedate +
			", maketime=" + maketime +
			"}";
	}
}
